package com.yn.common.request.zyorder;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 转运订单
 *
 */
@Data
@ApiModel(value="设备租聘保存", description="设备租聘保存")
public class ZyDeviceRentOrderRequest {
    //出发地区编码
    @ApiModelProperty(value = "设备id(多个设备以,分割)")
    @NotBlank(message = "设备信息不能为空,请选择设备!")
    private String deviceIds;

    @ApiModelProperty(value = "租聘天数")
    @NotNull(message = "租聘天数不能为空")
    private  Integer rentDay;

    @ApiModelProperty(value = "优惠卷id")
    private Integer couponId;

    @ApiModelProperty(value = "收获详细地址id")
    @NotNull(message = "收货地址不能为空")
    private Integer userAddressId;

    @ApiModelProperty(value = "备注")
    @Length(max = 200, message = "备注长度不能超过400")
    private String remark;
}
